home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / pressgen / uslprt.txt < prev    next >
Text File  |  1993-03-28  |  12KB  |  322 lines

  1. The NetWare NFS Server and USL UNIX
  2. -----------------------------------
  3.  
  4. This document describes how to access a NetWare NFS Server from a UNIX host 
  5. running USL System V Release 4.2. It contains detailed information about the 
  6. specific UNIX administration tasks you must perform from your USL UNIX host 
  7. to use the following NetWare NFS services:
  8.  
  9.     * NFS server
  10.     * NetWare-to-UNIX Print Gateway
  11.     * UNIX-to-NetWare Print Gateway
  12.  
  13. Identifying the NetWare Server
  14. ------------------------------
  15.  
  16. Before you can access any of the NFS services on the NetWare server, you must 
  17. enter the hostname and IP address of your NetWare server into the /etc/hosts 
  18. file on your UNIX system. This is done by adding the following line of text to 
  19. the /etc/hosts file:
  20.  
  21.     IP_address Hostname
  22.  
  23. Replace IP_address and Hostname with the Internet address and hostname of your 
  24. NetWare NFS server. 
  25.  
  26. You must also enter the IP address and hostname of the USL machine in the 
  27. SYS:ETC\HOSTS file on your NetWare server. When entering the name of the USL 
  28. system in the host table, use the principal name for the UNIX host (do not use 
  29. an alias).
  30.  
  31. The NFS Server
  32. --------------
  33.  
  34. To access the NetWare NFS server, the UNIX system administrator must be able 
  35. to perform the following tasks:
  36.  
  37.     * Mount an exported NetWare NFS directory.
  38.     * Unmount a mounted file system.
  39.     * Configure the system to automount an NFS file system.
  40.  
  41. Mounting an Exported NetWare NFS Directory
  42. ------------------------------------------
  43.  
  44. To mount a Network File System, you must log in to the system using the root 
  45. or superuser account. Before you mount the file system, you must create a 
  46. directory to serve as a mount point for the file system. The file system is 
  47. then mounted using the following command:
  48.  
  49.     mount -F nfs -o options NFS_server:Exported_directory Mount_point
  50.  
  51. Available options include the following:
  52.  
  53.     -----------------------------------------------------------------------
  54.     |Option        Description                                           |
  55.     -----------------------------------------------------------------------
  56.     |retry=n    Number of  times  to  retry  the mount operation.     |
  57.     |timeo=n    Set the NFS timeout to n tenths of a second.          |
  58.     |retrans=n    Number of NFS retransmissions.                        |
  59.     |rw|ro        Read/write or read-only.                              |
  60.     |soft|hard    Return an error if the  server  does not  respond,  or| 
  61.     |        continue the retry request until the server responds. |
  62.     -----------------------------------------------------------------------
  63.  
  64. Replace each of the following variables as indicated:
  65.  
  66.     NFS_server with the name of the NetWare NFS server
  67.     Exported_directory with the name of the NetWare directory expressed 
  68.         using UNIX conventions
  69.     Mount_point with the full pathname to the mount point.
  70.  
  71. Example:
  72.  
  73. Suppose you want to mount the NetWare USER:STUDENTS directory on the NetWare 
  74. server NFSSERV using /home/students as a mount point. First, create the 
  75. /home/students directory with the following command:
  76.  
  77.     mkdir /home/students
  78.  
  79. Then mount the file system with the following command:
  80.  
  81.     mount -F nfs -o soft,retry=4 nfsserv:/user/students /home/students
  82.  
  83. Verifying Mounted File Systems
  84. ------------------------------
  85.  
  86. You can verify which NFS file systems are currently mounted on your server by 
  87. displaying the contents of the /etc/mnttab mount table, or by entering the 
  88. following command:
  89.  
  90.     mount
  91.  
  92. Unmounting a Mounted File System
  93. --------------------------------
  94.  
  95. Use the following command to unmount an NFS file system:
  96.  
  97.     umount Mount_point
  98.  
  99. Replace Mount_point with the full pathname to the mount point of the file 
  100. system.
  101.  
  102. Configuring the System to Automount a Network File System
  103. ---------------------------------------------------------
  104.  
  105. The /etc/vfsstab file contains entries for all file systems that are mounted 
  106. during the system startup. If you want the file system to mount at boot time, 
  107. you can do the following:
  108.  
  109.     * Mount the file system manually and then 
  110.     * Enter the following command to write all of the currently mounted 
  111.       file systems to the /etc/vfstab file:
  112.  
  113.               mount -p > /etc/vfstab
  114.  
  115. The UNIX-to-NetWare Print Gateway
  116. ---------------------------------
  117.  
  118. Before configuring a printer on your UNIX host, make sure the name and IP 
  119. address of the NetWare NFS server are in the /etc/hosts file on the UNIX host.
  120.  
  121. Procedure
  122. ---------
  123.  
  124. To configure printing, complete the following steps:
  125.  
  126.     * Log in to the UNIX host as the root user.
  127.  
  128.     * Register the remote NetWare NFS server with the LP print service and 
  129.       define the way  the two servers will communicate. You should 
  130.       configure the LP service to print to a BSD-type printer on the 
  131.       NetWare server with the retry count set to 5 and the timeout set to 
  132.       10 seconds:
  133.  
  134.                 lpsystem -t bsd -R 5 -T 10 NetWare_server
  135.  
  136.           Replace NetWare_server with the name of the remote NetWare server.
  137.  
  138.     * Create a UNIX queue that points to the NetWare server by entering the 
  139.           following command:
  140.  
  141.                  lpadmin -p Printer -s NetWare_server:Printer 
  142.                         -I simple,postscript,troff
  143.  
  144.           For example, to create a UNIX printer called psprint to point to the 
  145.           queue called psprint on the NetWare NFS server called nfsserv, 
  146.           enter the following command:
  147.  
  148.                   lpadmin -p psprint -s nfsserv:psprint
  149.                          -I simple,postscript,troff
  150.  
  151.           The -I parameter allows PostScript, simple, and troff file formats.
  152.  
  153.         ---------------------------------------------------------------------
  154.         NOTE: The UNIX printer and the NetWare queue should have the same      
  155.               name.
  156.         ---------------------------------------------------------------------
  157.  
  158.     * Enable queuing by typing:
  159.  
  160.                    enable Printer
  161.  
  162.     * Accept print requests by typing:
  163.  
  164.                    accept Printer
  165.  
  166.     * Stop and start the LP scheduler.
  167.  
  168.                    /usr/sbin/lpshut    (Stop the scheduler.)
  169.                    /usr/lib/lp/lpsched    (Start the scheduler.)
  170.  
  171.     * Test the printer with the following command:
  172.  
  173.                    lp -d Printer filename
  174.  
  175.     * Examine the queue on the NetWare server typing the following command:
  176.  
  177.                    lpstat Printer
  178.  
  179. Troubleshooting
  180. ---------------
  181.  
  182. If you have any trouble printing, examine the following LP log files for clues:
  183.  
  184.                    /var/lp/logs/lpNet
  185.                    /var/lp/logs/lpsched
  186.  
  187. If it takes several minutes before a job submitted from the UNIX host appears 
  188. in the NetWare Print Queue, you can try any of the following:
  189.  
  190.     * Restart the print service by entering the following commands while 
  191.           logged in to the system as the root user:
  192.  
  193.                     /usr/sbin/lpshut
  194.                     /usr/lib/lp/lpsched
  195.  
  196.     * Send a print job to the UNIX host from the NetWare server using the 
  197.           NetWare-to-UNIX print server.
  198.  
  199.     * Set up TCP/IP as the preferred network by editing the /etc/netconfig 
  200.           file to place the TCP/IP entries at the beginning of the file. Reboot 
  201.           the UNIX system after you edit the /etc/netconfig file.
  202.  
  203. The NetWare-to-UNIX Print Gateway
  204. ---------------------------------
  205.  
  206. Before configuring the NetWare-to-UNIX Print Gateway, you should verify that 
  207. the port monitor is running by entering the following command:
  208.  
  209.                       pmadm -l -p tcp -s
  210.  
  211. If the port monitor is ready to accept printer service requests over your 
  212. network, you should get output similar to the following:
  213.  
  214. PMTAG    PMTYPE    SVCTAG    FLGS    ID    SCHEME    <PMSPECIFIC>
  215. tcp    listen    lpd    -     root    -    \x00020203 0000000000000000 - 
  216. p - /var/spool/lp/fifos/listenBSD #
  217. tcp    listen    0    -    root    -    \x00020ACE8239 0373000000000000
  218. 0000 - c - /usr/lib/saf/nlps_server #
  219.  
  220. Verify that entries exist for SVCTAG entries 0 and  lpd.
  221.  
  222. Procedure
  223. ---------
  224.  
  225. To configure NetWare-to-UNIX printing, configure the UNIX system as follows:
  226.  
  227.     * Enter the name and IP address of the NetWare NFS server in the
  228.           /etc/hosts file on the UNIX system. 
  229.  
  230.     * Register the remote NetWare NFS server with the LP print service and 
  231.           define the way the systems will communicate. The LP print service 
  232.           should be configured to accept BSD-type print requests from the 
  233.           NetWare server with the retry count set to 5 and the timeout period 
  234.           set to 10 seconds:
  235.  
  236.                      lpsystem -t bsd -R 5 -T 10 NetWare_server
  237.  
  238.       Replace NetWare_server with the name of the remote NetWare NFS server.
  239.  
  240.     * Define the printer.
  241.  
  242.           Use the lpadmin command to define the printer.
  243.  
  244.         Example:
  245.  
  246.         Enter the following command to define an IBM ProPrinter II at the 
  247.         parallel port:
  248.  
  249.                      lpadmin -p ibm -v /dev/lp0 -T ibmproprinter 
  250.  
  251.         For classroom purposes it is often desirable to direct all print jobs 
  252.         to your console screen. You can define a console screen to act as a 
  253.         printer by entering the following command:
  254.  
  255.                       lpadmin -p screen -v device_name
  256.  
  257.         Replace device_name with the name of your terminal (you can determine 
  258.         the name of your terminal by entering the tty command).
  259.  
  260. Configure the NetWare NFS Print Gateway as follows:
  261.  
  262.     * Use NFSADMIN to configure a NetWare print queue to point to the 
  263.           printer you defined on the UNIX system. You should give the NetWare 
  264.           print queue the same name as the UNIX printer.
  265.  
  266.     * Stop the UNIX-to-NetWare Print Server by entering the following 
  267.           console commands:
  268.                
  269.                        UNLOAD LPR_GWY
  270.                        UNLOAD LPR_PSRV
  271.  
  272.     * Restart the UNIX-to-NetWare Print Server by entering the following 
  273.           console commands:
  274.  
  275.                        LOAD LPR_PSRV
  276.                        LOAD LPR_GWY
  277.  
  278. Troubleshooting
  279. ---------------
  280.  
  281. If the UNIX system accepts but does not print jobs from the NetWare print 
  282. gateway, resubmit the jobs using the following PCONSOLE settings:
  283.  
  284.     * File contents.    Use Text instead of the default setting of Byte 
  285.                 Stream.
  286.     * Print Banner.     Should be set to Yes.
  287.  
  288. Use the PRINTCON utility to create a default configuration using these settings
  289. for the UNIX printer. 
  290.  
  291. If you have any trouble printing, examine the following LP log files for clues:
  292.  
  293.                          /var/lp/logs/lpNet
  294.                          /var/lp/logs/lpsched
  295.  
  296. USL Printing Commands
  297. ---------------------
  298.  
  299. The following table summarizes the printing-related commands available on 
  300. System V Release 4 machines:
  301.  
  302. -----------------------------------------------------------------------------
  303. Command            Description
  304. -----------------------------------------------------------------------------
  305. lp            Print a file
  306. lpstat            Determine status of printer or print job
  307. cancel            Cancel a print job
  308. lpmove            Move print jobs to a different destination
  309. lpadmin            Create or modify a printer configuration, mount 
  310.             a form
  311. enable            Activate a printer
  312. disable            Deactivate a printer
  313. accept            Permit job requests to be queued to a printer
  314. reject            Prevent jabs from being queued to a destination
  315. /usr/lib/lp/lpsched    Start  the LP scheduler
  316. lpshut            Stop the LP scheduler
  317. lpsystem        Register a remote system with the local LP print 
  318.             service
  319. lpfilter        Create or modify a filter definition
  320. lpforms            Create or modify a form
  321. -----------------------------------------------------------------------------
  322.